import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: () => import('../view/Login')
    },
    {
      path: '/RegisterNext',
      name: 'RegisterNext',
      component: () => import('../view/RegisterNext')
    },
    {
      path: '/Register',
      name: 'Register',
      component: () => import('../view/Register')
    },
    {
      path: '/MianPage',
      name: 'MianPage',
      component: () => import('../view/MianPage')
    },
    {
      path: '/train',
      name: 'train',
      component: () => import('../view/task/train/index')
    },
    {
      path: '/pointsmall',
      name: 'pointsmall',
      component: () => import('../view/pointsmall/index')
    },
    {
      path: '/onlinecourses',
      name: 'onlinecourses',
      component: () => import('../view/onlinecourses/index')
    },
    {
      path: '/task',
      name: 'task',
      component: () => import('../view/task/index')
    },
    {
      path: '/questionnaire',
      name: 'questionnaire',
      component: () => import('../view/questionnaire/index')
    }

  ]

})
